﻿using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Domain.SalesManage
{
    /// <summary>
    /// 客户实体
    /// </summary>
    [Table("Customer")]
    public class Customer : BaseEntity
    {
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? CustomerName { get; set; }

        /// <summary>
        /// 客户别名
        /// </summary>
        public string? CustomerAlias { get; set; }

        /// <summary>
        /// 简称
        /// </summary>
        public string? ShortName { get; set; }

        /// <summary>
        /// 所属省
        /// </summary>
        public string? Province { get; set; }

        /// <summary>
        /// 所属市
        /// </summary>
        public string? City { get; set; }

        /// <summary>
        /// 公司地址
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        public string? ZipCode { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 信用等级
        /// </summary>
        public string? CreditLevel { get; set; }

        /// <summary>
        /// 信用额度
        /// </summary>
        public decimal? CreditLimit { get; set; }

        /// <summary>
        /// 客户分类
        /// </summary>
        public string? CustomerType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 状态：正常/停用
        /// </summary>
        public bool Status { get; set; } = false;
    }
}
